package com.danjinwulian.common.constant;

/**
 * IoT常量信息
 * 
 * @author ken.h
 */
public class IoTConstants
{
    /**
     * 平台内系统产品的唯一标志
     */
    public static final String IOT_PRODUCT = "IOT_PRODUCT";

    /**
     * 平台内系统设备的唯一标志
     */
    public static final String IOT_DEVICE = "IOT_DEVICE";

    /** 离线状态 */
    public static final Long DEVICE_OFFLINE = 0L;

    /** 在线状态 */
    public static final Long DEVICE_ONLINE = 1L;

    /** 获取失败状态 */
    public static final Long DEVICE_DISABLE = 2L;

    /** 未激活状态 */
    public static final Long DEVICE_UNACTIVE = 3L;

    /** 人走断电关闭状态 */
    public static final String DEVICE_LPO_CLOSE = "0";

    /** 人走断电开启状态 */
    public static final String DEVICE_LPO_OPEN = "1";

    /** 扫码开电禁用状态 */
    public static final String DEVICE_SPO_DISABLE = "0";

    /** 扫码开电启用状态 */
    public static final String DEVICE_SPO_ENABLE = "1";

    /** 扫码开电禁用状态 */
    public static final String DEVICE_PT_BUY = "1";

    /** 扫码开电启用状态 */
    public static final String DEVICE_PT_RENT = "2";

    /** 电路开关（10扫码开电 11远程通电 12自动通电 01远程断电 02强制断电 03人走断电） */
    public static final String DEVICE_SCAN_POWERON = "10";
    public static final String DEVICE_REMOTE_POWERON = "11";
    public static final String DEVICE_AUTO_POWERON = "12";
    public static final String DEVICE_REMOTE_POWEROFF = "01";
    public static final String DEVICE_FORCE_POWEROFF = "02";
    public static final String DEVICE_LEAVE_POWEROFF = "03";

    /** 校验返回结果码 */
    public final static String UNIQUE = "0";
    public final static String NOT_UNIQUE = "1";

    /** 正常状态 */
    public static final String NORMAL = "0";

    /** 异常状态 */
    public static final String EXCEPTION = "1";
}
